﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dysoft.RabbitMQ.Model
{
    /// <summary>
    /// 消息日志实体model
    /// </summary>
    public class MessageLogDTO
    {
        /// <summary>
        /// 日志消息ID
        /// </summary>
        public string LogID { get; set; }

        /// <summary>
        /// 发送消息方
        /// </summary>
        public string Sender { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime? SendTime { get; set; }

        /// <summary>
        /// 发送消息主体ID
        /// </summary>
        public string MessageID { get; set; }

        /// <summary>
        /// 发送消息内容
        /// </summary>
        public object SendContent { get; set; }

        /// <summary>
        /// 接收消息方
        /// </summary>
        public string Receiver { get; set; }

        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime? ReceiveTime { get; set; }

        /// <summary>
        /// 接收消息并处理成功标志
        /// </summary>
        public bool? isSuccess { get; set; } = true;

        /// <summary>
        /// 失败后的错误异常信息
        /// </summary>
        public string ExceptionMsg { get; set; }

    }
}
